import Vue from "vue";
import App from "./App.vue";
import router from "@/router";
import "@/mock";
import store from "@/store";

//饿了么组件
import elementUi from "@/main/elementUi";
Vue.use(elementUi);
//注册公共组件
import components from "@/main/components";
Vue.use(components);
//表单校验插件
import VeeValidate from "@/main/VeeValidate";
//使用表单校验插件
Vue.use(VeeValidate);
//懒加载组件
import lazyLoad from "@/main/lazyLoad";
Vue.use(lazyLoad);

Vue.config.productionTip = false;

new Vue({
  render: (h) => h(App),
  beforeCreate() {
    Vue.prototype.$bus = this;
  },
  router,
  store,
}).$mount("#app");
